package cn.tqfeiyang.springplus.framework.security.loader;

import cn.tqfeiyang.springplus.framework.Constants;
import cn.tqfeiyang.springplus.framework.security.AuthenticationUserDetails;
import cn.tqfeiyang.springplus.framework.security.AuthenticationUserLoader;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Configuration
@ConditionalOnMissingBean(AuthenticationUserLoader.class)
public class InMemoryAuthenticationConfiguration {

    @Bean
    public AuthenticationUserLoader authenticationUserLoader() {
        return new InMemoryAuthenticationUserLoader();
    }

}
